@thynpm/argos NPM

您所在的位置:网站首页 argos 希腊神话 @thynpm/argos NPM

@thynpm/argos NPM

#@thynpm/argos NPM | 来源: 网络整理| 查看: 265

argos

argos,希腊神话中的百眼巨人。

主要用于异常的捕获上报,目前仅支持 React、Vue、小程序。

初版功能比较简单,完善中……

React安装npm install --save @thynpm/argos配置

尽可能早的进行初始化。

import React from "react"; import ReactDOM from "react-dom"; import * as Argos from "@thynpm/argos"; import App from "./App"; Argos.init({ url: "https://example/url" }); ReactDOM.render(, document.getElementById("root"));Vue安装npm install --save @thynpm/argos配置

尽可能早的进行初始化。

import Vue from "vue"; import * as Argos from "@thynpm/argos"; const { VueIntegration } = Argos; Argos.init({ url: "https://example/url", integrations: [new VueIntegration({ Vue })], });小程序

目前只支持非插件小程序。

安装npm init npm install --save @thynpm/argos-xcx配置

尽可能早的进行初始化,在 app.js 中进行配置初始化。

var Argos = require("@thynpm/argos-xcx"); Argos.init({ url: "https://example/url" });


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3